export const getQueryWhere = (query: any) => {
  Object.keys(query).forEach((k) => {
    let v = query[k];
    if (query[k] === "" || query[k] === null || query[k] === undefined) {
      delete query[k];
    }
    // console.log(v,v.startsWith("con."));
    if (k.startsWith("con.")) { // 表示模糊搜索
      delete query[k];
      query[k.replace("con.", "")] = {
        contains: v,
        // includes  这个用来查询数组中是否包含某一项
      };
    }
  });
  delete query.timestemp
  return query;
};
